// 引入vue的类库
import Vue from 'vue'
import App from './app.vue'
import store from "./todo/stores";
import router from "./todo/routers";
import utils from "./todo/utils";
import globalConfig from "./assets/global/globalConfig";
import MuseUI from 'muse-ui';
// import { Toast } from 'vant';


import Vant from 'vant';
import 'vant/lib/index.css';

Vue.use(Vant);
// import 'muse-ui/dist/muse-ui.css';

window.utils = utils;
// 便于在浏览器中查看
window.globalConfig = globalConfig;

// plugin引入
import "./todo/plugins";

/**
 * ui框架组件，全局组件引入
 */
// 引入全局组件
import AppBar from "./todo/components/global/AppBar.vue";
import AppContent from "./todo/components/global/AppContent.vue";
import Page from "./todo/components/global/Page.vue";
Vue.component("AppBar", AppBar);
Vue.component("AppContent", AppContent);
Vue.component("Page", Page);
// Vue.use(Toast);
// Vue.use(MuseUI);

new Vue({
  // 使用router
  router,
  // 使用vuex
  store,
  // 虚拟dom
  render: (h) => h(App)
  // 挂载节点
}).$mount('#app')